<html>
<head>
    <%@ page language="java" contentType="text/html; charset=UTF-8"
             pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <title>Title</title>
</head>
<body>
<c:choose >
    <c:when test="${page.currentPage==1}">
        首页
    </c:when>

    <c:otherwise >
        <a href="${page.url}">首页</a>
    </c:otherwise>
</c:choose>
<%----%>

<c:choose >
    <c:when test=" ${page.currentPage<=1}">
        上一页
    </c:when>

    <c:otherwise >
        <a  href="${page.url}currentPage=${page.currentPage-1}">上一页</a>
    </c:otherwise>
</c:choose>


<c:choose >
    <c:when test="${page.currentPage>=page.countPage}">
        下一页
    </c:when>

    <c:otherwise >
        <a href="${page.url}&currentPage=${page.currentPage+1}">下一页</a>
    </c:otherwise>
</c:choose>

<c:choose>
    <c:when test="${page.currentPage==page.countPage}">
        尾页
    </c:when>
    <c:otherwise>
        <a href="${page.url}&currentPage=${page.countPage}">尾页</a>
    </c:otherwise>
</c:choose>

</body>
</html>
